import service from '@/utils/request'

// @Tags FdArticleVideo
// @Summary 创建FdArticleVideo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FdArticleVideo true "创建FdArticleVideo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /fdArticleVideo/createFdArticleVideo [post]
export const createFdArticleVideo = (data) => {
  return service({
    url: '/fdArticleVideo/createFdArticleVideo',
    method: 'post',
    data
  })
}

// @Tags FdArticleVideo
// @Summary 删除FdArticleVideo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FdArticleVideo true "删除FdArticleVideo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /fdArticleVideo/deleteFdArticleVideo [delete]
export const deleteFdArticleVideo = (data) => {
  return service({
    url: '/fdArticleVideo/deleteFdArticleVideo',
    method: 'delete',
    data
  })
}

// @Tags FdArticleVideo
// @Summary 删除FdArticleVideo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除FdArticleVideo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /fdArticleVideo/deleteFdArticleVideo [delete]
export const deleteFdArticleVideoByIds = (data) => {
  return service({
    url: '/fdArticleVideo/deleteFdArticleVideoByIds',
    method: 'delete',
    data
  })
}

// @Tags FdArticleVideo
// @Summary 更新FdArticleVideo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FdArticleVideo true "更新FdArticleVideo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /fdArticleVideo/updateFdArticleVideo [put]
export const updateFdArticleVideo = (data) => {
  return service({
    url: '/fdArticleVideo/updateFdArticleVideo',
    method: 'put',
    data
  })
}

// @Tags FdArticleVideo
// @Summary 用id查询FdArticleVideo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.FdArticleVideo true "用id查询FdArticleVideo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /fdArticleVideo/findFdArticleVideo [get]
export const findFdArticleVideo = (params) => {
  return service({
    url: '/fdArticleVideo/findFdArticleVideo',
    method: 'get',
    params
  })
}

// @Tags FdArticleVideo
// @Summary 分页获取FdArticleVideo列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取FdArticleVideo列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /fdArticleVideo/getFdArticleVideoList [get]
export const getFdArticleVideoList = (params) => {
  return service({
    url: '/fdArticleVideo/getFdArticleVideoList',
    method: 'get',
    params
  })
}
